# Maths functions might be implemented in libm
libm = cc.find_library('m', required : false)
-# FIXME: HAVE_XFREE_XINERAMA
-
check_functions = [
'dcgettext',
'getpagesize',
fontconfig_dep = dependency('fontconfig')
atkbridge_dep = dependency('atk-bridge-2.0', version: atk_req)
- # FIXME: check for xinerama + add to x11_pkgs
-
x11_pkgs = ['fontconfig', 'x11', 'xext', 'xi', 'xrandr']
if xcursor_dep.found()
endif
endif
+ enable_xinerama = get_option('enable-xinerama')
+ if enable_xinerama != 'no'
+ want_xinerama = enable_xinerama == 'yes'
+ xinerama_dep = dependency('xinerama', required : want_xinerama)
+ if xinerama_dep.found() and cc.has_header_symbol('X11/extensions/Xinerama.h', 'XineramaQueryExtension', dependencies : xinerama_dep)
+ cdata.set('HAVE_XFREE_XINERAMA', 1)
+ x11_pkgs += ['xinerama']
+ elif want_xinerama
+ error('No function XineramaQueryExtension in xinerama dependency which was explicitly requested.')
+ endif
+ else
+ xinerama_dep = []
+ endif
+
cdata.set('HAVE_RANDR', xrandr_dep.found())
cdata.set('HAVE_RANDR15', xrandr15_dep.found())
endif
if vulkan_lib.found() and cc.has_function('vkCreateInstance', dependencies : vulkan_lib) and cc.has_header('vulkan/vulkan.h')
have_vulkan = true
pc_gdk_extra_libs += ['-lvulkan']
+ elif enable_vulkan == 'yes'
+ error('Vulkan support not found, but was explicitly requested.')
endif
else
message('Vulkan support explicitly disabled')
description : 'Enable the papi print backend')
option('enable-cloudprint-print-backend', type: 'combo', choices : ['yes', 'no', 'auto'], value : 'auto',
description : 'Enable the cloudprint print backend')
+option('enable-xinerama', type: 'combo', choices : ['yes', 'no', 'auto'], value : 'auto',
+ description : 'Enable support for the Xinerama extension')